import request from '@/utils/request'

// 查询流程定义节点信息列表
export function listBpmNode(query) {
  return request({
    url: '/workflow/bpmNode/list',
    method: 'get',
    params: query
  })
}

// 查询流程定义节点信息详细
export function getBpmNode(id) {
  return request({
    url: '/workflow/bpmNode/' + id,
    method: 'get'
  })
}

// 新增流程定义节点信息
export function addBpmNode(data) {
  return request({
    url: '/workflow/bpmNode',
    method: 'post',
    data: data
  })
}

// 修改流程定义节点信息
export function updateBpmNode(data) {
  return request({
    url: '/workflow/bpmNode',
    method: 'put',
    data: data
  })
}

// 删除流程定义节点信息
export function delBpmNode(id) {
  return request({
    url: '/workflow/bpmNode/' + id,
    method: 'delete'
  })
}
